<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="java.io.File"%>
<%
        String serverName = request.getServerName();
        String imagePath = "images/" + serverName;
		
		File file = new File(application.getRealPath(imagePath) + "/ibroker-logo.gif");
				
		if(!file.exists())
		{imagePath = "images/default";}
%>

<html>
    <head>
		<title>Forwarding Service - Public Redirects</title>
        <meta content="text/html; charset=UTF-8" http-equiv="content-type">
        <link rel="stylesheet" type="text/css" href="styleSheets/iservices.css" />
    </head>

    <body >
	<center>
		<table cellspacing=25 border=0 cellpadding=0 width="800">
			<tr>
				<td height="120" valign="top">
					<IMG valign="top" src="images/default/ibroker-logo.gif" width="120">
                </td>
                <td height="120" width="605" valign="top">
                    <a class="link-nounderline" href="#">
						<img valign="top" border="0" src="images/default/ad-banner.gif" width=605 />
					</a>
				</td>
            </tr>
			<tr>
				<td colspan="2">
					<table border=0 cellpadding="0" cellspacing="0" width="760px">
						<tr height="10">
                            <td width="10" bgcolor="#999999">
							</td>
							<td width="740" bgcolor="#999999" valign="top">
								<table>
									<tr height="45">
										<td width="600" bgcolor="#999999" valign="middle" align="left">
										<font class="title-text">Public Redirects</font>	
											</td>
											<td width="140" bgcolor="#999999" valign="middle">
												&nbsp;
											</td>
											</tr>
										</table>
							</td>
							<td width="10" bgcolor="#999999" valign="middle" align="left">
                            </td>
						</tr>
						<tr>
							<td width="10" bgcolor="#999999">
								<img src="images/default/grey-square.gif">
							</td>
							<td bgcolor="#CCCCCC">
								<table border="0" width="70%" id="iLinkTable" align="center">
									<tr>
										<td class="black-headertext">
											<bean:message key="label.ilink" />
										</td>
										<td class="black-headertext">
											<bean:message key="label.head.forward" />
										</td>
									</tr>
										<%int i = 0;%>
										<bean:define id="ilinks1" name="configData" property="ilink" />
										<logic:iterate id="ilink2" name="ilinks1">
									<tr id='row<%=i%>'>
										<td class="black-smalltext">
											<a href='<bean:write name="ilink2" property="ilink"/>' target="_blank" class="link-nounderline"><bean:write name="ilink2" property="ilink" /></a>
										</td>
										<td class="black-smalltext">
											<bean:write name="ilink2" property="forward" />
										</td>
									</tr>
										</logic:iterate>
								</table>
							</td>
							<td width="10" bgcolor="#999999">
								<img src="images/default/grey-square.gif">
							</td>
						</tr>	
						<tr>
							<td width="10" bgcolor="#999999">
                                <img src="images/default/grey-square.gif">
                            </td>
							<td bgcolor="#999999">
                                <img src="images/default/grey-square.gif">
                            </td>
							<td width="10" bgcolor="#999999">
                                <img src="images/default/grey-square.gif">
                            </td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</center>
    </body>
</html>
